home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / graphic / tpega.zip / KC-PAL.DOC < prev    next >
Text File  |  1986-02-01  |  4KB  |  94 lines

  1.                                                         Version 01FEB86
  2.  
  3.  
  4.  
  5.         The program, KC-PAL, gives the user the ability to changes the
  6.         EGA's color palettes through a fancy form screen.  But first,
  7.         some background information:
  8.  
  9.         What is a palette:
  10.             A palette is a holding place in the EGA hardware to save a
  11.         color setting.  The EGA uses 4 palettes for 64k (EGA memory)
  12.         and 16 palettes for 128k+ (EGA memory).  This means that EGA
  13.         can have up to 4/16 different colors on the screen at a time.
  14.         The EGA (any size of memory) can produce sixtyfour different
  15.         colors on the Enhance Color Display (ECD).  So a palette holds
  16.         the value of one of these sixtyfour diffent colors.  Now in
  17.         text mode (the above was about 640x350 graphic mode) all EGA's
  18.         can have 16 palettes (or 16 different colors on the screen).
  19.         The palettes are arranged on the screen as:
  20.  
  21.                         8   9  10  11  12  13  14  15
  22.  
  23.                         0   1   2   3   4   5   6   7
  24.  
  25.  
  26.         What is a color:
  27.             A color is made up of three primary color, Red, Green and
  28.         Blue.  EGA has four setting (with the ECD) for each primary
  29.         color (0,1,2 and 3).  Four different Red, Green and Blue pri-
  30.         mary colors equals 64 different colors (4 * 4 * 4 = 64). Each
  31.         palette can be assign one of these 64 different colors.  The
  32.         bottow on the screen contains the break down of the current
  33.         palette selected (reversed highlighed) as:
  34.  
  35.                         R = X, G = X, B = X     { X = 0 through 3 }
  36.  
  37.  
  38.         What is a color number:
  39.             A color number is the values of the Red, Green and Blue
  40.         (RGB) primary colors put together for form a single number.
  41.         For example: R = 2, G = 1, B = 0 =
  42.                      16 * R + 4 * G + B  =
  43.                      16 * 2 + 4 * 1 + 0  = 38
  44.  
  45.         The default EGA colors are arranged on the screen as:
  46.  
  47.                        56  57  58  59  60  61  62  63
  48.  
  49.                         0   1   2   3   4   5   6   7
  50.  
  51.  
  52.         KC-PAL commands:
  53.  
  54.                 'space bar':  Reset all colors to their default state.
  55.  
  56.                 'arrow keys': Select palette to change.  The reversed
  57.                               highlighted cursor will move to the current
  58.                               palette and the information line will change.
  59.  
  60.                 '+' or '-':   Adds one or subtract one from the current
  61.                               palettes 'color number'.
  62.  
  63.                 'R' 'G' 'B':  Adds one to the specified primary color.
  64.                               Watch the information line as you do it.
  65.  
  66.                 '0'..'9':     Allows you to enter a new color number.
  67.                               For a single digit number, you must enter
  68.                               a zero first.
  69.  
  70.                 'ESC':        Return to DOS with palettes set.
  71.  
  72.         If you use KC-PAL alot, KCSETPAL (with or without parameters) will
  73.         allow KC-PAL to read the old palette setting, put KCSETPAL in your
  74.         autoexec.bat file.  If you do not use KCSETPAL, KC-PAL will reset
  75.         the palettes to their default state when executed.
  76.  
  77.         If you exit KC-PAL ('ESC') and the palettes are diffent from their
  78.         default state then it will display the parameters for the program
  79.         KCSETPAL.
  80.  
  81.         Please note that KC-PAL is design for an EGA with more than 64k
  82.         of graphic memory.  It will still work, but not totally.  This
  83.         version KC-PAL was design to demonstrate my graphic library in
  84.         graphic mode.  A new version of KC-PAL that will work of any
  85.         EGA with be available by the time you read this.  If you find
  86.         KC-PAL a problem with 64k of EGA memory send a SASE disk for
  87.         the new version.
  88.  
  89.  
  90.                         Kent Cedola
  91.                         2015 Meadow Lake Court
  92.                         Norfolk, VA  23518
  93.                         (804) 857-0613
  94.